<?php


namespace app\common\validates;


use think\Validate;

class Auth extends Validate
{
    protected $rule =   [
        'code|登录凭证' => 'require|max:50|min:20',
        'iv|解密偏移量' => 'require',
        'encryptedData|加密串' => 'require',
    ];

    protected $scene = [
        'login' => ['code', 'iv', 'encryptedData']
    ];
}
